#!/usr/bin/python

shoplist = ['apple', 'mango', 'carrot', 'banana']
print 'I have', len(shoplist), 'items to purchase.'

for item in shoplist:
    print item,

shoplist.append('rice')
print '\nMy shopping list is now ', shoplist

print 'I will sort my list now '
shoplist.sort()
print 'Sorted shopping list is ', shoplist

print 'The first item I will buy is ', shoplist[0]
olditem = shoplist[0]
del shoplist[0]
print 'I bought the ', olditem
print 'My shopping list is now', shoplist

print 'My shoplist list count now ', shoplist.count('mango')

print '\n'
